package cn.credit.loan.service.level;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import cn.credit.loan.dao.level.LevelMapper;
import cn.credit.loan.entity.Level;

/**
 * 分期期数业务层
 * @author
 *
 */
@Service
public class LevelServiceImpl implements LevelService {
	
	//注入
	@Autowired
	private LevelMapper levelMapper;
	
	/**
	 * 显示所有的分期期数列表
	 */
	@Override
	public List<Level> getlevelList(Level level) {
		List<Level> leveList=levelMapper.getlevelList(level);
		if(leveList!=null){
			return leveList;
		}
		return null;
	}

}
